package com.example.traning.mall.controller.account.vo;

import com.example.traning.mall.framework.common.consts.validation.UserRules;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * 修改用户基本信息的参数类
 *
 * @author java@tedu.cn
 * @version 3.0
 */
@Data
public class UserUpdateInfoParam {


    @Schema(example = "雷宇老师的账号", description = "简介")
    private String description;

    @Pattern(regexp = UserRules.PATTERN_PASSWORD, message = UserRules.MESSAGE_PASSWORD_PATTERN)
    @Schema(example = "654321", description = "新密码")
    private String newPassword;

    @Schema(example = "", description = "头像")
    private String avatar;

    @Schema(example = "17508130815", description = "手机号")
    @Pattern(regexp = UserRules.PATTERN_PHONE, message = UserRules.MESSAGE_PHONE_PATTERN)
    private String phone;

    @Schema(example = "937618113@qq.com", description = "邮件")
    @Pattern(regexp = UserRules.PATTERN_EMAIL, message = UserRules.MESSAGE_EMAIL_PATTERN)
    private String email;

    @Schema(example = "0", description = "是否启用，1=启用，0=未启用")
    private Byte enable;

}
